a7200784cdb5b8cfa594b15486e6b888b02d5293,java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/WrapExpressionFix.java,WrapExpressionFix,getClassType,#PsiType#PsiElement#,47
Before Change
@Nullable
private static PsiClassType getClassType(PsiType type, PsiElement place) {
return (PsiClassType)(type instanceof PsiClassType ?
type : ((PsiPrimitiveType)type).getBoxedType(place.getManager(), GlobalSearchScope.allScope(place.getProject())));
}
@NotNull
After Change
@Nullable
private static PsiClassType getClassType(PsiType type, PsiElement place) {
if (type instanceof PsiClassType) {
return (PsiClassType)type;
}
else if (type instanceof PsiPrimitiveType){
return ((PsiPrimitiveType)type).getBoxedType(place.getManager(), GlobalSearchScope.allScope(place.getProject()));
}
return null;
}